package com.gaswell.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gaswell.entity.Qba01;
import com.gaswell.entity.Qba01M;
import com.gaswell.pojo.Diagnosis;
import com.gaswell.pojo.RtuData;
import com.gaswell.vo.FindLastDataVo;
import com.gaswell.vo.FindLastDataVo2;
import com.gaswell.vo.Result;
import com.gaswell.vo.RtuDataVo;

import java.util.List;


public interface RtuDataService extends IService<RtuData> {

    //    Result selectProperties(int current, int size, RtuDataParams rtuDataParams);
    Result selectByOptions(RtuData rtuData, int department);

    Result insertBatch(List<RtuData> list);

    Result selectCount();

    Result selectAll(int department);


    Result selectData(String ywbh, String date, String properties);

    Result findLatestData(int department);






    Result findLatestData(List<String> ywbhs,  List<String> zwbhs);
    Result findLatestData5(List<String> ywbhs,  List<String> zwbhs);
//   时间区间查数据

    List<RtuData> selectList(int department);
    List<RtuData> selectListByJHAndDate(int department,String[] jhs,String start,String end);

    Result selectByMutiOptions(RtuDataVo rtuDataVo, String date, int sort, int department);

    FindLastDataVo2 judgeDiagnosis(List<Diagnosis> dataByTime, FindLastDataVo2 findLastDataVo, Qba01 qba01);
}
